package org.darkforest.common.logger;

import org.slf4j.LoggerFactory;

/**
 *
 * Created by Justin on 15/1/18.
 */
public class Logger {
    private Logger() {

    }

    public static void debug(Class clazz, String message, Object ... args) {
        getLogger(clazz).debug(message, args);
    }

    public static void info(Class clazz, String message, Object ... args) {
        getLogger(clazz).info(message, args);
    }

    public static void warn(Class clazz, String message, Object ... args) {
        getLogger(clazz).warn(message, args);
    }

    public static void error(Class clazz, String message, Object ... args) {
        getLogger(clazz).error(message, args);
    }

    public static org.slf4j.Logger getLogger(Class clazz) {
        return LoggerFactory.getLogger(clazz);
    }
}
